package com.framework.threadpool.reject;

import com.framework.threadpool.MyThreadPoolExecutor;

/**
 * @author duanzhizhou
 * @date 2025/4/9
 */
public class RejectStrategy implements RejectHandler{
    @Override
    public void reject(Runnable task, MyThreadPoolExecutor executor) {
        throw new RuntimeException("线程池已满，拒绝执行");
    }
}
